package com.wei.czz.common.vo.common.multiDict;

import com.alibaba.excel.annotation.ExcelProperty;
import com.wei.czz.common.easyexcel.converter.CzzLongStringConverter;
import com.wei.czz.common.vo.common.UploadVo;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2025-04-26 10:58:25
 * className: MultiDictUploadVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class MultiDictUploadVo extends UploadVo {

    /**
     * 父级字典（序号|主键）
     */
    @NotNull(message = "父级字典（序号|主键）不能为空")
    @ExcelProperty(value = "父级字典（序号|主键）", converter = CzzLongStringConverter.class)
    private Long parentNo;

    /**
     * 类型名称
     */
    @NotBlank(message = "类型名称不能为空")
    @ExcelProperty(value = "类型")
    private String typeName;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空")
    @ExcelProperty(value = "名称")
    private String name;

    /**
     * 字符串值
     */
    @NotBlank(message = "字典值不能为空")
    @ExcelProperty(value = "字典值")
    private String value;

    /**
     * 排序等级
     */
    @NotNull(message = "排序等级不能为空")
    @ExcelProperty(value = "排序等级")
    private Integer sort;

    /**
     * 状态[0-可用 1-禁用]
     */
    @NotBlank(message = "状态不能为空")
    @ExcelProperty(value = "状态")
    private String statusName;

    /**
     * 默认状态[0-是 1-否]
     */
    @NotBlank(message = "默认状态不能为空")
    @ExcelProperty(value = "默认状态")
    private String defaultStatusName;

}
